package com.atguigu.lease.common.utils;

import java.util.Random;

/**
 * @Author yaya
 * @Create 2024/6/5 18:34
 * Description:
 */
public class VerifyCodeUtil {
    public static String getVerifyCode(int len){
        StringBuffer stringBuffer = new StringBuffer();
        Random random = new Random();
        for (int i = 0; i < len; i++) {
            stringBuffer.append(random.nextInt(10));
        }
        return stringBuffer.toString();
    }
}
